473,468 Members | 1,343 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

What is the difference between a List Box and Combo Box?

dmjpro
2,476 Top Contributor
at first let me clearify ....
these (Combo BOX + List BOX) r two different components in html page?????

i know how to develope combo box... but list boxxxxxx??????

plz help me .......thanxxx in advance
Apr 6 '07 #1
3 43363
AricC
1,892 Recognized Expert Top Contributor
at first let me clearify ....
these (Combo BOX + List BOX) r two different components in html page?????

i know how to develope combo box... but list boxxxxxx??????

plz help me .......thanxxx in advance
DMJ,
I edited your thread title to be more descriptive. Also, I've put together an example to show you the difference, essentially you use the same tag.
[html]
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html>
<head>
<title>List Box/Combo Box Example</title>
<style type="text/css">

</head>
<body>
<h1>List Box</h1>
<select size="4">
<option>Item 1</option>
<option>Item 2</option>
<option>Item 3</option>
<option>Item 4</option>
<option>Item 5</option>
<option>Item 6</option>
<option>Item 7</option>
<option>Item 8</option>
<option>Item 9</option>
</select>
<br />
<h1>Combo Box</h1>
<select size="1">
<option>Item 1</option>
<option>Item 2</option>
<option>Item 3</option>
<option>Item 4</option>
<option>Item 5</option>
<option>Item 6</option>
<option>Item 7</option>
<option>Item 8</option>
<option>Item 9</option>
</select>
</body>
</html>
[/html]
Apr 6 '07 #2
KevinADC
4,059 Recognized Expert Specialist
AricC probably figured out your question, but it's confusing because list box and combo box are not html form widgets at all, they are sort of slang terms used to describe the SELECT widget, or select menu. The attribute that allows a user to select more than one thing from the list is MULTIPLE

<select size=3 multiple>

but the sever side form processing script has to be able to process multi-valued form field data, other wise you get only one value anyway. Most good form processor scripts know how to do that, but if you are writing your own script you need to be aware of that.
Apr 6 '07 #3
dmjpro
2,476 Top Contributor
both of u thanxxxx
Apr 7 '07 #4

Sign in to post your reply or Sign up for a free account.

Similar topics

2
by: diadia | last post by:
string s = "hello"; const char *p = s.begin(); cout << p << endl; // print hello s = ""; char *p2= s.begin(); cout << p2 << endl; // print hello why?????
2
by: Kazza | last post by:
Hi I have finally figured out how to do a combo 'not on list' field- perfect now i can scoll down to see all the students names and add new ones. One tiny problem, the students names now do not...
5
by: bhushanbagul | last post by:
Hi All Please let me know exactly what difference i and g makes in oracle version i.e. when we say oracle 10g or oracle 11i Thanks Bhushan
1
by: Nestor01 | last post by:
I use a lookup table which contacts 2 fields (item#, name) When a customer places an order, the order form contains a drop down to select the item by name (from the lookup table). The detail is...
11
by: mezmerize | last post by:
Firstly a description of the situation to give you an insight. have a table of motorcycles (Registration no.,makes,models,colour,no.owners, etc. and i would like to be able to run a query that...
1
by: gosens | last post by:
Hello, I am hoping some one could help me out with the code for this one. Basically what i am trying to do is for a simple cash register system give a person the ability to enter a barcode...
1
by: gosens | last post by:
Hello, I am hoping some one could help me out with the code for this one. Basically what i am trying to do is for a simple cash register system give a person the ability to enter a barcode...
0
by: gosens | last post by:
Hello, I am hoping some one could help me out with the code for this one. Basically what i am trying to do is for a simple cash register system give a person the ability to enter a barcode...
8
by: limperger | last post by:
Hi everyone! What about this situation? In a shared database, where people works with form, having these list boxes, imagine that 2 users enter data for the, say, same costumer, who was not in a...
10
by: Tim Mullin | last post by:
Hello all, Sorry if this question appears a lot, I've looked all over the internet and can't find a single solution that works. I would like to add an "All" option to a list box (and a combo...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
1
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
1
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.